package com.ceair.flight.refund.location.dt.enums;
/**
 * 2016-09-20 
 * @author Administrator
 * 退款来源方式
 */
public enum RefundTypeEnum {
	
	/**
	 * 支付状态枚举
	 * */
	REFUND_EX(0,"补退款"),
	REFUND_TICKET(1,"退正常和改期票"),
	REFUND_EMD(2,"退EMD座"),
	REFUND_PAYMISTAKE(3,"差错退款"),
	REFUND_VIP(4,"退VIP订单"),
	REFUND_WIFI(5,"退WIFI订单"),
	REFUND_BAGE(6,"退行李订单"),
	REFUND_GAOTIE(7,"退高铁"),
	REFUND_CITYTOUR(8,"退CITYTOUR");
	
	/** 简码 */
    private final Integer code;

    /** 描述 */
    private final String description;
    
    private RefundTypeEnum(Integer code, String description){
    	this.code = code;
        this.description = description;
    }
    
    /**
     * @return Returns the code.
     */
    public Integer getCode() {
        return code;
    }

    /**
     * @return Returns the description.
     */
    public String getDescription() {
        return description;
    }

    /**
     * 通过枚举<code>code</code>获得枚举。
     *
     * @param code  简码
     * @return      枚举
     */
    public static RefundTypeEnum getByCode(Integer code) {
        for (RefundTypeEnum status : values()) {
            if (status.getCode().intValue()==code.intValue()) {
                return status;
            }
        }
        return null;
    }
}
